<template>
  <router-link :to="menu.route">
    <div class="card nav-wrap">
      <div class="nav-icon" :style="{ color: menu.iconColor }">
        <i :class="menu.icon"></i>
      </div>
      <div class="nav-content">
        <h3 class="nav-title">{{ menu.title }}</h3>
        <div class="nav-desc">{{ menu.desc }}</div>
      </div>
    </div>
  </router-link>
</template>

<script>
export default {
  props: {
    menu: {
      type: Object,
      default: () => ({}),
    },
  },
  data() {
    return {}
  },
  computed: {},
  created() {},
  methods: {},
}
</script>
<style lang="scss" scoped>
.nav-wrap {
  padding: 5.5rem 1rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  transition: all 0.3s;
  color: $body-color;

  &:hover {
    color: $primary;
    color: var(--primary);
  }
}
.nav-icon {
  font-size: 3rem;
  flex: 1;
  text-align: center;
  color: $gray-700;
}
.nav-content {
  flex: 2;
}
.nav-title {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: bold;
}
.nav-desc {
  color: $gray-600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
</style>
